//
//  OilLevelCell.m
//  QoilPublic
//
//  Created by SunChao on 2018/4/23.
//  Copyright © 2018年 孙超. All rights reserved.
//

#import "OilLevelCell.h"
#import "CoordinatesModel.h"
@implementation OilLevelCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setCellWithData:(NSDictionary *)dic{
    
    self.deviceName.textColor = [UIColor blackColor];
    self.remainOilLevel.textColor = [UIColor redColor];
    self.numberOfOil.textColor = [UIColor blackColor];
    self.availableTime.textColor = [UIColor blackColor];
    CoordinatesModel *coorModel = [CoordinatesModel objectFromDict:dic];
    self.deviceName.text = coorModel.deviceName;
    self.remainOilLevel.text = [NSString stringWithFormat:@"%d%@",[coorModel.oilLevel intValue],@"%"];
    self.numberOfOil.text = [NSString stringWithFormat:@"%@%@",coorModel.surplusOil,@"L"];
    self.availableTime.text = @"暂无数据";
}


@end
